import request from '@/utils/request'

/* 
登陆
POST /admin/acl/index/login
*/
export function login({username, password}) {
  return request({
    url: '/admin/acl/index/login',
    method: 'post',
    data: {username, password}
  })
}

/* 
获取用户信息
GET /admin/acl/index/info
*/
export function getInfo() {
  return request({
    url: '/admin/acl/index/info',
    // method: 'get',
    // params: { token } // 指定query参数
  })
} 

/* 
退出登陆
POST /admin/acl/index/logout
*/
export function logout() {
  return request({
    url: '/admin/acl/index/logout',
    method: 'post'
  })
}
